import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MesLogisticsComponent} from './mes-logistics.component';

const routes: Routes = [
    {path: '', component: MesLogisticsComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-mes-logistics/add-mes-logistics.module#AddMesLogisticsModule'},
            {path: 'list', loadChildren: './list-mes-logistics/list-mes-logistics.module#ListMesLogisticsModule'},
            {path: 'modify', loadChildren: './modify-mes-logistics/modify-mes-logistics.module#ModifyMesLogisticsModule'},
            {path: 'report', loadChildren: './report-mes-logistics/report-mes-logistics.module#ReportMesLogisticsModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MesLogisticsRoutingModule {
}
